package net.getbang.shop.controller;

import java.util.List;
import java.util.Set;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import net.getbang.admin.entity.SysMenu;
import net.getbang.common.utils.Result;
import net.getbang.shop.entity.ProductType;
import net.getbang.shop.service.ProductTypeService;

@RestController
@RequestMapping("/shop/product/type")
public class ProductTypeController {

	@Autowired
	private ProductTypeService productTypeService;
	
	/**
	 * 导航菜单
	 */
	@RequestMapping("/nav")
	public Result nav(){
		
		List<ProductType> menuList = productTypeService.selectByMap(null);
		
		return Result.ok().put("menuList", menuList);
	}
	
	
	
}
